/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jesstalk;

import javax.servlet.http.HttpServletRequest;

/**
 *
 * @author Ecky
 */
public class Util {

    /**
     * Get the base URL
     * @param request
     * @return
     */
    public static String getBaseUrl(HttpServletRequest request) {
        return request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath();
    }
}
